home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / unix-faq.faq.part1 < prev    next >
Encoding:
Internet Message Format  |  1994-05-16  |  16.0 KB

  1. Subject: Unix - Frequently Asked Questions (1/7) [Frequent posting]
  2. Newsgroups: comp.unix.questions,comp.unix.shell,comp.answers,news.answers
  3. From: tmatimar@isgtec.com (Ted Timar)
  4. Date: 14 May 1994 10:18:40 GMT
  5.  
  6. Archive-name: unix-faq/faq/part1
  7. Version: $Id: part1,v 2.5 1994/04/28 19:25:03 tmatimar Exp $
  8.  
  9. These seven articles contain the answers to some Frequently Asked
  10. Questions often seen in comp.unix.questions and comp.unix.shell.
  11. Please don't ask these questions again, they've been answered plenty
  12. of times already - and please don't flame someone just because they may
  13. not have read this particular posting.  Thank you.
  14.  
  15. This collection of documents is Copyright (c) 1994, Ted Timar.
  16. All rights reserved.  Permission to distribute the collection is
  17. hereby granted providing that distribution is electronic, no money
  18. is involved, reasonable attempts are made to use the latest version
  19. and all credits and this copyright notice are maintained.
  20. Other requests for distribution will be considered.
  21.  
  22. All information here has been contributed with good intentions, but
  23. none of it is guaranteed either by the contributors or myself to be
  24. accurate.  The users of this information take all responsibility for
  25. any damage that may occur.
  26.  
  27. Many FAQs, including this one, are available on the archive site
  28. rtfm.mit.edu in the directory pub/usenet/news.answers.
  29. The name under which a FAQ is archived appears in the "Archive-Name:"
  30. line at the top of the article.  This FAQ is archived as
  31. "unix-faq/faq/part[1-7]".
  32.  
  33. These articles are divided approximately as follows:
  34.  
  35.       1.*) General questions.
  36.       2.*) Relatively basic questions, likely to be asked by beginners.
  37.       3.*) Intermediate questions.
  38.       4.*) Advanced questions, likely to be asked by people who thought
  39.        they already knew all of the answers.
  40.       5.*) Questions pertaining to the various shells, and the differences.
  41.       6.*) An overview of Unix variants.
  42.       7.*) An comparison of configuration management systems (RCS, SCCS).
  43.  
  44. This article includes answers to:
  45.  
  46.       1.1)  Who helped you put this list together?
  47.       1.2)  When someone refers to 'rn(1)' or 'ctime(3)', what does
  48.               the number in parentheses mean?
  49.       1.3)  What does {some strange unix command name} stand for?
  50.       1.4)  How does the gateway between "comp.unix.questions" and the
  51.               "info-unix" mailing list work?
  52.       1.5)  What are some useful Unix or C books?
  53.       1.6)  What happened to the pronunciation list that used to be
  54.               part of this document?
  55.  
  56. If you're looking for the answer to, say, question 1.5, and want to skip
  57. everything else, you can search ahead for the regular expression "^1.5)".
  58.  
  59. While these are all legitimate questions, they seem to crop up in
  60. comp.unix.questions or comp.unix.shell on an annual basis, usually
  61. followed by plenty of replies (only some of which are correct) and then
  62. a period of griping about how the same questions keep coming up.  You
  63. may also like to read the monthly article "Answers to Frequently Asked
  64. Questions" in the newsgroup "news.announce.newusers", which will tell
  65. you what "UNIX" stands for.
  66.  
  67. With the variety of Unix systems in the world, it's hard to guarantee
  68. that these answers will work everywhere.  Read your local manual pages
  69. before trying anything suggested here.  If you have suggestions or
  70. corrections for any of these answers, please send them to to
  71. tmatimar@isgtec.com.
  72.  
  73. ----------------------------------------------------------------------
  74.  
  75. Subject: Who helped you put this list together?
  76. Date: Thu Mar 18 17:16:55 EST 1993
  77.  
  78. 1.1)  Who helped you put this list together?
  79.  
  80.       I took over the maintenance of this list.  Almost all of the work
  81.       (and the credit) for generating this compilation was done by
  82.       Steve Hayman.
  83.  
  84.       We also owe a great deal of thanks to dozens of Usenet readers who
  85.       submitted questions, answers, corrections and suggestions for this
  86.       list.  Special thanks go to Maarten Litmaath, Guy Harris and
  87.       Jonathan Kamens, who have all made many especially valuable
  88.       contributions.
  89.  
  90.       Part 5 of this document (shells) was written almost entirely by
  91.       Matthew Wicks <wicks@dcdmjw.fnal.gov>.
  92.  
  93.       Part 6 of this document (Unix flavours) was written almost entirely by
  94.       Pierre (P.) Lewis <lew@bnr.ca>.
  95.  
  96.       Where possible the author of each question and the date it was last
  97.       updated is given at the top.  Unfortunately, I only started this
  98.       practice recently, and much of the information is lost.  I was also
  99.       negligent in keeping track of who provided updates to questions.
  100.       Sorry to those who have made valuable contributions, but did not
  101.       receive the credit and recognition that they legitimately deserve.
  102.  
  103. ------------------------------
  104.  
  105. Subject: When someone refers to 'rn(1)' ...  the number in parentheses mean?
  106. Date: Thu Mar 18 17:16:55 EST 1993
  107.  
  108. 1.2)  When someone refers to 'rn(1)' or 'ctime(3)', what does
  109.       the number in parentheses mean?
  110.  
  111.       It looks like some sort of function call, but it isn't.  These
  112.       numbers refer to the section of the "Unix manual" where the
  113.       appropriate documentation can be found.  You could type
  114.       "man 3 ctime" to look up the manual page for "ctime" in section 3
  115.       of the manual.
  116.  
  117.       The traditional manual sections are:
  118.  
  119.     1    User-level  commands
  120.     2    System calls
  121.     3    Library functions
  122.     4    Devices and device drivers
  123.     5    File formats
  124.     6    Games
  125.     7    Various miscellaneous stuff - macro packages etc.
  126.     8    System maintenance and operation commands
  127.  
  128.       Some Unix versions use non-numeric section names.  For instance,
  129.       Xenix uses "C" for commands and "S" for functions.  Some newer
  130.       versions of Unix require "man -s# title" instead of "man # title".
  131.  
  132.       Each section has an introduction, which you can read with "man #
  133.       intro" where # is the section number.
  134.  
  135.       Sometimes the number is necessary to differentiate between a
  136.       command and a library routine or system call of the same name.
  137.       For instance, your system may have "time(1)", a manual page about
  138.       the 'time' command for timing programs, and also "time(3)", a
  139.       manual page about the 'time' subroutine for determining the
  140.       current time.  You can use "man 1 time" or "man 3 time" to
  141.       specify which "time" man page you're interested in.
  142.  
  143.       You'll often find other sections for local programs or even
  144.       subsections of the sections above - Ultrix has sections 3m, 3n,
  145.       3x and 3yp among others.
  146.  
  147. ------------------------------
  148.  
  149. Subject: What does {some strange unix command name} stand for?
  150. Date: Thu Mar 18 17:16:55 EST 1993
  151.  
  152. 1.3)  What does {some strange unix command name} stand for?
  153.  
  154.       awk = "Aho Weinberger and Kernighan"
  155.  
  156.     This language was named by its authors, Al Aho, Peter
  157.     Weinberger and Brian Kernighan.
  158.  
  159.       grep = "Global Regular Expression Print"
  160.  
  161.     grep comes from the ed command to print all lines matching a
  162.     certain pattern
  163.  
  164.             g/re/p
  165.  
  166.     where "re" is a "regular expression".
  167.  
  168.       fgrep = "Fixed GREP".
  169.  
  170.     fgrep searches for fixed strings only.  The "f" does not stand
  171.     for "fast" - in fact, "fgrep foobar *.c" is usually slower than
  172.     "egrep foobar *.c"  (Yes, this is kind of surprising. Try it.)
  173.  
  174.     Fgrep still has its uses though, and may be useful when searching
  175.     a file for a larger number of strings than egrep can handle.
  176.  
  177.       egrep = "Extended GREP"
  178.  
  179.     egrep uses fancier regular expressions than grep.  Many people
  180.     use egrep all the time, since it has some more sophisticated
  181.     internal algorithms than grep or fgrep, and is usually the
  182.     fastest of the three programs.
  183.  
  184.       cat = "CATenate"
  185.  
  186.     catenate is an obscure word meaning "to connect in a series",
  187.     which is what the "cat" command does to one or more files.  Not
  188.     to be confused with C/A/T, the Computer Aided Typesetter.
  189.  
  190.       gecos = "General Electric Comprehensive Operating System"
  191.     
  192.     When GE's large systems division was sold to Honeywell,
  193.     Honeywell dropped the "E" from "GECOS".
  194.  
  195.     Unix's password file has a "pw_gecos" field.  The name is a
  196.     real holdover from the early days.  Dennis Ritchie has reported:
  197.  
  198.         "Sometimes we sent printer output or batch jobs
  199.          to the GCOS machine.  The gcos field in the password file
  200.          was a place to stash the information for the $IDENT card.
  201.          Not elegant."
  202.  
  203.       nroff = "New ROFF"
  204.       troff = "Typesetter new ROFF"
  205.     
  206.     These are descendants of "roff", which was a re-implementation
  207.     of the Multics "runoff" program (a program that you'd use to
  208.     "run off" a good copy of a document).
  209.  
  210.       tee       = T
  211.  
  212.     From plumbing terminology for a T-shaped pipe splitter.
  213.  
  214.       bss = "Block Started by Symbol"
  215.     
  216.     Dennis Ritchie says:
  217.  
  218.         Actually the acronym (in the sense we took it up; it may
  219.         have other credible etymologies) is "Block Started by
  220.         Symbol." It was a pseudo-op in FAP (Fortran Assembly [-er?]
  221.         Program), an assembler for the IBM 704-709-7090-7094
  222.         machines.  It defined its label and set aside space for a
  223.         given number of words.  There was another pseudo-op, BES,
  224.         "Block Ended by Symbol" that did the same except that the
  225.         label was defined by the last assigned word + 1.  (On these
  226.         machines Fortran arrays were stored backwards in storage
  227.         and were 1-origin.)
  228.  
  229.         The usage is reasonably appropriate, because just as with
  230.         standard Unix loaders, the space assigned didn't have to be
  231.         punched literally into the object deck but was represented
  232.         by a count somewhere.
  233.  
  234.       biff = "BIFF"
  235.  
  236.     This command, which turns on asynchronous mail notification,
  237.     was actually named after a dog at Berkeley.
  238.  
  239.         I can confirm the origin of biff, if you're interested.
  240.         Biff was Heidi Stettner's dog, back when Heidi (and I, and
  241.         Bill Joy) were all grad students at U.C. Berkeley and the
  242.         early versions of BSD were being developed.   Biff was
  243.         popular among the residents of Evans Hall, and was known
  244.         for barking at the mailman, hence the name of the command.
  245.  
  246.     Confirmation courtesy of Eric Cooper, Carnegie Mellon University
  247.  
  248.       rc (as in ".cshrc" or "/etc/rc") = "RunCom"
  249.  
  250.     "rc" derives from "runcom", from the MIT CTSS system, ca. 1965.
  251.  
  252.         'There was a facility that would execute a bunch of
  253.         commands stored in a file; it was called "runcom" for "run
  254.         commands", and the file began to be called "a runcom."
  255.  
  256.         "rc" in Unix is a fossil from that usage.'
  257.     
  258.     Brian Kernighan & Dennis Ritchie, as told to Vicki Brown
  259.  
  260.     "rc" is also the name of the shell from the new Plan 9
  261.     operating system.
  262.  
  263.       Perl = "Practical Extraction and Report Language"
  264.       Perl = "Pathologically Eclectic Rubbish Lister"
  265.  
  266.     The Perl language is Larry Wall's highly popular
  267.     freely-available completely portable text, process, and file
  268.     manipulation tool that bridges the gap between shell and C
  269.     programming (or between doing it on the command line and
  270.     pulling your hair out).  For further information, see the
  271.     Usenet newsgroup comp.lang.perl.
  272.  
  273.       Don Libes' book "Life with Unix" contains lots more of these
  274.       tidbits.
  275.  
  276. ------------------------------
  277.  
  278. Subject: How does the gateway between "comp.unix.questions" ... work ?
  279. Date: Thu Mar 18 17:16:55 EST 1993
  280.  
  281. 1.4)  How does the gateway between "comp.unix.questions" and the
  282.       "info-unix" mailing list work?
  283.  
  284.       "info-unix" and "unix-wizards" are mailing list versions of
  285.       comp.unix.questions and comp.unix.wizards respectively.
  286.       There should be no difference in content between the
  287.       mailing list and the newsgroup.
  288.  
  289.       To get on or off either of these lists, send mail to
  290.       info-unix-request@brl.mil or unix-wizards-request@brl.mil.
  291.       Be sure to use the '-Request'.  Don't expect an immediate response.
  292.  
  293.       Here are the gory details, courtesy of the list's maintainer,
  294.       Bob Reschly.
  295.  
  296.       ==== postings to info-UNIX and UNIX-wizards lists ====
  297.  
  298.       Anything submitted to the list is posted; I do not moderate
  299.       incoming traffic -- BRL functions as a reflector.  Postings
  300.       submitted by Internet subscribers should be addressed to the list
  301.       address (info-UNIX or UNIX- wizards);  the '-request' addresses
  302.       are for correspondence with the list maintainer [me].  Postings
  303.       submitted by USENET readers should be addressed to the
  304.       appropriate news group (comp.unix.questions or
  305.       comp.unix.wizards).
  306.  
  307.       For Internet subscribers, received traffic will be of two types;
  308.       individual messages, and digests.  Traffic which comes to BRL
  309.       from the Internet and BITNET (via the BITNET-Internet gateway) is
  310.       immediately resent to all addressees on the mailing list.
  311.       Traffic originating on USENET is gathered up into digests which
  312.       are sent to all list members daily.
  313.  
  314.       BITNET traffic is much like Internet traffic.  The main
  315.       difference is that I maintain only one address for traffic
  316.       destined to all BITNET subscribers. That address points to a list
  317.       exploder which then sends copies to individual BITNET
  318.       subscribers.  This way only one copy of a given message has to
  319.       cross the BITNET-Internet gateway in either direction.
  320.  
  321.       USENET subscribers see only individual messages.  All messages
  322.       originating on the Internet side are forwarded to our USENET
  323.       machine.  They are then posted to the appropriate newsgroup.
  324.       Unfortunately, for gatewayed messages, the sender becomes
  325.       "news@brl-adm".  This is currently an unavoidable side-effect of
  326.       the software which performs the gateway function.
  327.  
  328.       As for readership, USENET has an extremely large readership - I
  329.       would guess several thousand hosts and tens of thousands of
  330.       readers.  The master list maintained here at BRL runs about two
  331.       hundred fifty entries with roughly ten percent of those being
  332.       local redistribution lists.  I don't have a good feel for the
  333.       size of the BITNET redistribution, but I would guess it is
  334.       roughly the same size and composition as the master list.
  335.       Traffic runs 150K to 400K bytes per list per week on average.
  336.  
  337. ------------------------------
  338.  
  339. Subject: What are some useful Unix or C books?
  340. Date: Thu Mar 18 17:16:55 EST 1993
  341.  
  342. 1.5)  What are some useful Unix or C books?
  343.  
  344.       Mitch Wright (mitch@cirrus.com) maintains a useful list of Unix
  345.       and C books, with descriptions and some mini-reviews.  There are
  346.       currently 167 titles on his list.
  347.  
  348.       You can obtain a copy of this list by anonymous ftp from
  349.       ftp.rahul.net (192.160.13.1), where it's "pub/mitch/YABL/yabl".
  350.       Send additions or suggestions to mitch@cirrus.com.
  351.  
  352.       Samuel Ko (kko@sfu.ca) maintains another list of Unix books.
  353.       This list contains only recommended books, and is therefore
  354.       somewhat shorter.  This list is also a classified list, with
  355.       books grouped into categories, which may be better if you are
  356.       looking for a specific type of book.
  357.  
  358.       You can obtain a copy of this list by anonymous ftp from
  359.       rtfm.mit.edu, where it's "pub/usenet/news.answers/books/unix".
  360.       Send additions or suggestions to kko@sfu.ca.
  361.  
  362.       If you can't use anonymous ftp, email the line "help" to
  363.       "ftpmail@decwrl.dec.com" for instructions on retrieving
  364.       things via email.
  365.  
  366. ------------------------------
  367.  
  368. Subject: What happened to the pronunciation list ... ?
  369. Date: Thu Mar 18 17:16:55 EST 1993
  370.  
  371. 1.6)  What happened to the pronunciation list that used to be part of this
  372.       document?
  373.  
  374.       From its inception in 1989, this FAQ document included a
  375.       comprehensive pronunciation list maintained by Maarten Litmaath
  376.       (thanks, Maarten!).  It was originally created by Carl Paukstis
  377.       <carlp@frigg.isc-br.com>.
  378.  
  379.       It has been retired, since it is not really relevant to the topic
  380.       of "Unix questions".  You can still find it as part of the
  381.       widely-distributed "Jargon" file (maintained by Eric S. Raymond,
  382.       eric@snark.thyrsus.com) which seems like a much more appropriate
  383.       forum for the topic of "How do you pronounce  /* ?"
  384.  
  385.       If you'd like a copy, you can ftp one from ftp.wg.omron.co.jp
  386.       (133.210.4.4), it's "pub/unix-faq/docs/Pronunciation-Guide".
  387.  
  388. ------------------------------
  389.  
  390. End of unix/faq Digest part 1 of 7
  391. **********************************
  392.  
  393. -- 
  394. Ted Timar - tmatimar@isgtec.com
  395. ISG Technologies Inc., 6509 Airport Road, Mississauga, Ontario, Canada L4V 1S7
  396.  
  397.